package main

import "fmt"

func main() {
	var form string
	for i := 1; i < 10; i++ {
		for j := 1; j < i+1; j++ {
			form = fmt.Sprintf("%dx%d=%d", i, j, i*j)
			form = fmt.Sprintf("%-6s", form)
			if j == 1 || (i == j && i*j < 10) {
				form = form[:5]
			}
			fmt.Print(form)
			if j < i {
				fmt.Print(" ")
			}
		}
		fmt.Println()
	}
}
